package com.wonders.module.auth.entity.bo;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

import org.hibernate.annotations.GenericGenerator;
import org.hibernate.annotations.Parameter;

import com.wonders.framework.entity.bo.BaseBo;

/**
 * 角色权限信息BO
 * 
 * @author WuBin
 * 
 */
@Entity
@Table(name = "AU_ROLE_AUTH")
public class RoleAuth extends BaseBo {

	/**
	 * 编号
	 */
	@Id
	@GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "dateSequenceGenerator")
	@GenericGenerator(name = "dateSequenceGenerator", strategy = "com.wonders.framework.dao.sequence.DateSequenceGenerator", parameters = { @Parameter(name = "sequence", value = "SEQ_ROLE_AUTH") })
	private Long id;

	/**
	 * 角色编号
	 */
	private Long roleId;

	/**
	 * 权限编号
	 */
	private Long authId;

	/**
	 * 权限类型
	 */
	private Integer authType;

	public Long getId() {
		return id;
	}

	public Long getRoleId() {
		return roleId;
	}

	public Long getAuthId() {
		return authId;
	}

	public Integer getAuthType() {
		return authType;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public void setRoleId(Long roleId) {
		this.roleId = roleId;
	}

	public void setAuthId(Long authId) {
		this.authId = authId;
	}

	public void setAuthType(Integer authType) {
		this.authType = authType;
	}

	@Override
	public String toString() {
		return "RoleAuth [id=" + id + ", roleId=" + roleId + ", authId="
				+ authId + ", authType=" + authType + "]";
	}

}
